package com.daka.vo.response;

import com.daka.entity.Organization;
import lombok.Data;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/9/23 15:47
 */

@SuppressWarnings("unused")
@Data
@ToString
public class OrganizationResponseVo {

    private Integer id;
    private String groupCode;
    private String name;
    private String shortName;
    private String logoMin;
    private String logo;
    private String province;
    private String city;
    private String district;
    private String regAddress;
    private Integer memberCounts;
    private String regDate;
    private String phone;
    private String monitor;
    private Integer times;
    private Integer delStatus;
//    private Integer createUser;
    private Integer activityCounts;
    private String createTime;
    private String address;
    private String description;

    public static OrganizationResponseVo buildVO(Organization org) {
        OrganizationResponseVo orgVo = new OrganizationResponseVo();
        orgVo.setId(org.getId());
        orgVo.setGroupCode(org.getGroupCode());
        orgVo.setName(org.getName());
        orgVo.setShortName(org.getShortName());
        orgVo.setLogoMin(org.getLogoMin());
        orgVo.setLogo(org.getLogo());
        orgVo.setProvince(org.getProvince());
        orgVo.setCity(org.getCity());
        orgVo.setDistrict(org.getDistrict());
        orgVo.setRegAddress(org.getRegAddress());
        orgVo.setMemberCounts(org.getMemberCounts());
        orgVo.setRegDate(org.getRegDate());
        orgVo.setPhone(org.getPhone());
        orgVo.setMonitor(org.getMonitor());
        orgVo.setTimes(org.getTimes());
        orgVo.setDelStatus(org.getDelStatus());
        orgVo.setCreateTime(org.getCreateTime());
        orgVo.setActivityCounts(org.getActivityCounts());
        orgVo.setCreateTime(org.getCreateTime());
        orgVo.setAddress(org.getAddress());
        orgVo.setDescription(org.getDemo());
        return orgVo;
    }


}


